import javax.swing.*;
import java.awt.*;
//TESTING SVN
public class BitCountUI extends JFrame {
	
	public BitCountUI() {
		//CREATE WINDOW
		super("BitCount");
		setSize(450, 250);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		GridLayout layout = new GridLayout(4,1,1,10);
		setLayout(layout);
		
		//SET UP ROW 1
		JPanel row1 = new JPanel();
		JLabel enter = new JLabel("Enter Integer: ");
		JTextField integer = new JTextField(15);
		row1.add(enter);
		row1.add(integer);
		FlowLayout flo1 = new FlowLayout();
		row1.setLayout(flo1);
		add(row1);
		
		//SET UP ROW 2
		JPanel row2 = new JPanel();
		ButtonGroup option = new ButtonGroup();
		JRadioButton intRadio = new JRadioButton("Integer");
		JRadioButton hexRadio = new JRadioButton("Hexadecimal");
		option.add(intRadio);
		option.add(hexRadio);
		row2.add(intRadio);
		row2.add(hexRadio);
		FlowLayout flo2 = new FlowLayout();
		row2.setLayout(flo2);
		add(row2);
		
		//SET UP ROW 3
		JPanel row3 = new JPanel();
		JButton count = new JButton("Count");
		row3.add(count);
		FlowLayout flo3 = new FlowLayout();
		row3.setLayout(flo3);
		add(row3);
		
		//SET UP ROW 4
		JPanel row4 = new JPanel();
		JLabel num = new JLabel("Number of 1 bits");
		JTextField result = new JTextField(5);
		result.setEditable(false);
		row4.add(num);
		row4.add(result);
		FlowLayout flo4 = new FlowLayout();
		row4.setLayout(flo4);
		add(row4);
		
		
		//setLayout(flo);
		setVisible(true);
	}
	
	public static void main(String[] args) {
		BitCountUI ui = new BitCountUI();
	}
}
